package com.tarry.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * spring 自定义配置
 */

@Configuration
@ConfigurationProperties(prefix = "tarry.app")
// 该注解 不支持 yml
//@PropertySource
@Data
public class TarryProperties {
    private String name;
    private String age;
    private String email;
}
